package com.rc.pojo.dto.area;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *  实体类。
 *
 * @author sym
 * @since 2024-05-31
 */
@Data
public class AreaAddDTO {

    @NotBlank(message = "名称不能为空")
    @ApiModelProperty(value = "名称", required = true)
    private String name;

    @NotBlank(message = "封面")
    @ApiModelProperty(value = "封面", required = true)
    private String cover;

    @ApiModelProperty(value = "描述")
    private String description;

    @NotNull(message = "植物id不能为空")
    @ApiModelProperty(value = "植物id", required = true)
    private Long plantId;

    @NotBlank(message = "地址不能为空")
    @ApiModelProperty(value = "园区地址", required = true)
    private String address;

    @NotNull(message = "纬度不能为空")
    @ApiModelProperty(value = "纬度", required = true)
    private Double lat;

    @NotNull(message = "经度不能为空")
    @ApiModelProperty(value = "经度", required = true)
    private Double  lng;

    private Double size;
}
